// #!groovy 该行没有什么效果

def getAppConfig(String appName) {
    def appConfig = [:]
    if(appName == 'my-service') {
        // appConfig.put('appName', 'my-service')
        // appConfig.put('deployEnv', 'dev')
        // appConfig.put('appBuildFunc', { sh 'echo Build App' })
        def appBuildFunc = { sh 'echo Build App' }
        appConfig = [
            appName: 'my-service',
            appBuildFunc: appBuildFunc
        ]
    }
    return appConfig
}
